import Vue from 'vue';
const this_ = Vue.prototype;

export default async function getSignFuntion() {
	let projectInfo = uni.getStorageSync('projectInfo')
	const token = uni.getStorageSync('accessToken')
	
	if (!projectInfo || !token) {
		return
	}
	projectInfo = JSON.parse(projectInfo)

	const res = await this_.$Geting(this_.$api.dailySign, {
		tenantId: projectInfo.tenantId
	})

	if (res.isSuccess && res.data !== '-1') {
		uni.showToast({
			title: res.data,
			icon: 'none',
			duration: 5000
		})
	}
}